package com.yllt4cloud.ddauth.mapper;

import com.yllt4cloud.common.ddbase.domain.Department;
import com.yllt4cloud.common.ddbase.param.DepartmentTaiCiSumParam;
import com.yllt4cloud.common.ddbase.result.DeptHuaDanHuiZongResult;
import com.yllt4cloud.ddauth.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * <br>
 * <b>功能：</b>DepartmentMapper<br>
 * <b>作者：</b>Administrator<br>
 * <b>日期：</b> Tue Feb 12 19:50:36 CST 2019 <br>
 * <b>版权所有： 2016,yllt.com<br>
 */ 



@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {

    public List<Department> selectBottom(Map<String, Object> paramMap);


    public List<DeptHuaDanHuiZongResult> departmentHuaDanHuiZong(Map<String, Object> paramMap);

    public int departmentTaiCiSum(DepartmentTaiCiSumParam param);

    /**
     *
     * <p><b>作用：</b>查询部门ids</p>
     * <p><b>日期：</b>2016-10-9 下午5:49:45</p>
     * <p><b>作者：</b>yaozq</p>
     * @param paramMap
     * @return
     * @exception
     */
    public List<Integer> queryDepartmentIds(Map<String, Object> paramMap);


    /**
     * <p><b>作用：</b>获取人员角色的部门信息</p>
     * <p><b>日期：</b>2018-8-24 下午2:43:15</p>
     * <p><b>作者：</b>曹历历</p>
     * @param paramMap
     * @return
     * @exception
     */
    public List<Department>  frontGetRoleClerkDepartment(Map<String, Object> paramMap);


    /**
     * 按标签获取部门信息，商秘标签 ，营销标签，
     * @param paramMap
     * @return
     */
    public List<Department>  selectLabelDepartment(Map<String, Object> paramMap);

    /**
     * 提供给 员工，可以查看 其他部门的业绩，接口, 父部门下的子部门数据也获取
     * @param paramMap
     * @return
     */
    public List<Department>  queryYeJiDepartment(Map<String, Object> paramMap);


    /**
     * 根据员工id 查询部门信息
     * @param paramMap
     * @return
     */
    public List<Department>    queryClerkDepartment(Map<String, Object> paramMap);


}
